package com.jgdt.jgdtkasannong_university_gene_backend.common.enums;

/**
 * @description: 系统响应代码枚举定义
 * @author: huangAn
 * @createDate: 2025/04/18
 */

public enum SystemCodeEnums {

    SUCCESS("200", "操作成功"),
    FAIL("500", "系统内部错误"),
    BAD_REQUEST("400", "请求参数错误"),
    UNAUTHORIZED("401", "未授权访问,请登录后重试"),
    FORBIDDEN("403", "禁止访问"),
    NOT_FOUND("404", "资源不存在"),
    SERVICE_UNAVAILABLE("503", "服务不可用");
    ;


    private String key;

    private String msg;

    SystemCodeEnums(String key, String msg) {
        this.key = key;
        this.msg = msg;
    }

    public String getKey() {
        return key;
    }

    public String getMsg() {
        return msg;
    }

}
